package com.nbot.server.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 自定义
 */
@ConfigurationProperties(prefix = "nbot.server")
public class NbotProperties {

    /**
     * 每次返回时，返回的最大条数
     */
    private int maxRentrnNum = 5;
    private boolean mybaitsCache = false;
    private boolean unitTestMode = false;
    private String opcWorkClass = "com.nbot.server.workers.impl.OpcWorkerImpl";
    private String oracleWorkerClass = "com.nbot.server.workers.impl.OracleWorkerImpl";

    /**
     * server监听的端口号
     */
    private String port = "8000";
    private boolean socketListen = true;
    private String oracleAlarmInterval = "10";
    private boolean oracleAlarm = true;
    private Opc opc = new Opc();
    private Opc3chang opc3chang = new Opc3chang();
    /**
     * 是否启用opc的关联查询，默认开启
     */
    private boolean opcRelatedSearch = true;

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getOpcWorkClass() {
        return opcWorkClass;
    }

    public void setOpcWorkClass(String opcWorkClass) {
        this.opcWorkClass = opcWorkClass;
    }

    public int getMaxRentrnNum() {
        return maxRentrnNum;
    }

    public Opc getOpc() {
        return opc;
    }

    public void setOpc(Opc opc) {
        this.opc = opc;
    }

    public void setMaxRentrnNum(int maxRentrnNum) {
        this.maxRentrnNum = maxRentrnNum;
    }


    public Opc3chang getOpc3chang() {
        return opc3chang;
    }

    public void setOpc3chang(Opc3chang opc3chang) {
        this.opc3chang = opc3chang;
    }

    public boolean isUnitTestMode() {
        return unitTestMode;
    }

    public void setUnitTestMode(boolean unitTestMode) {
        this.unitTestMode = unitTestMode;
    }


    public boolean isOracleAlarm() {
        return oracleAlarm;
    }

    public void setOracleAlarm(boolean oracleAlarm) {
        this.oracleAlarm = oracleAlarm;
    }

    public String getOracleAlarmInterval() {
        return oracleAlarmInterval;
    }

    public void setOracleAlarmInterval(String oracleAlarmInterval) {
        this.oracleAlarmInterval = oracleAlarmInterval;
    }

    public boolean isSocketListen() {
        return socketListen;
    }

    public void setSocketListen(boolean socketListen) {
        this.socketListen = socketListen;
    }

    public boolean isMybaitsCache() {
        return mybaitsCache;
    }

    public void setMybaitsCache(boolean mybaitsCache) {
        this.mybaitsCache = mybaitsCache;
    }

    public String getOracleWorkerClass() {
        return oracleWorkerClass;
    }

    public void setOracleWorkerClass(String oracleWorkerClass) {
        this.oracleWorkerClass = oracleWorkerClass;
    }

    public boolean isOpcRelatedSearch() {
        return opcRelatedSearch;
    }

    public void setOpcRelatedSearch(boolean opcRelatedSearch) {
        this.opcRelatedSearch = opcRelatedSearch;
    }

}
